package com.guigu.www.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName("sys_roles")
public class Roles {
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    @TableField("NAME")
    private String name;            //角色名称
    @TableField("CODE")
    private String code;            //角色编号
    @TableField("DESCN")
    private String descn;           //角色说明
    @TableField(exist = false)
    private boolean check;
    @TableField(exist = false)
    private List<Menus> menus;
    @TableField(exist = false)
    private List<Authorization> authorizationList = new ArrayList<Authorization>();
}